package com.orm.handler;

import java.sql.*;


/**
 * 类型处理器接口
  */
public interface TypeHandler<T> {
	void setParameter(PreparedStatement ps, int i, T parameter, JDBCType jdbcType) throws SQLException;
	
	T getResult(ResultSet rs, String columnName) throws SQLException;
	
	T getResult(ResultSet rs, int columnIndex) throws SQLException;
}
